package com.gopay.common.domain.fund;

import com.gopay.common.domain.fund.vo.FundCiticBase;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;


/**
 * @author baiyunpeng
 * @2016年7月14日 下午3:36:05  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "FUND_GOAPAY_ACC_CHANGE_NOTIFY")
public class FundGoapayAccChangeNotify extends FundCiticBase{
    private String keyId;
    private String serialNo;
    private String accountStatus;
    private Double balance;
    private String msgType;
    private String account;
    private String accountName;
    private String fileBatchNo;
    private Date bankNotifyTime;
    private String memo;
    private String isSucc;
    private Date depositTime;
    private String errorCode;
    private String errorMsg;
    private String source;
    private Date createdTs;
    private Date lastUpdTs;
    private Integer version;
    private String returnUrl;

    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    @Column(name = "KEY_ID", insertable = true, updatable = true, nullable = false)
    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    @Basic
    @Column(name = "SERIAL_NO",length = 16)
    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    @Basic
    @Column(name = "ACCOUNT_STATUS",length = 20)
    public String getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(String accountStatus) {
        this.accountStatus = accountStatus;
    }

    @Basic
    @Column(name = "BALANCE",length = 17)
    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    @Basic
    @Column(name = "MSG_TYPE",length = 20)
    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    @Basic
    @Column(name = "ACCOUNT",length = 32)
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Basic
    @Column(name = "ACCOUNT_NAME",length = 16)
    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    @Basic
    @Column(name = "FILE_BATCH_NO",length = 64)
    public String getFileBatchNo() {
        return fileBatchNo;
    }

    public void setFileBatchNo(String fileBatchNo) {
        this.fileBatchNo = fileBatchNo;
    }

    @Basic
    @Column(name = "BANK_NOTIFY_TIME",length = 200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getBankNotifyTime() {
        return bankNotifyTime;
    }

    public void setBankNotifyTime(Date bankNotifyTime) {
        this.bankNotifyTime = bankNotifyTime;
    }

    @Basic
    @Column(name = "MEMO",length = 32)
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Basic
    @Column(name = "IS_SUCC",length = 1)
    public String getIsSucc() {
        return isSucc;
    }

    public void setIsSucc(String isSucc) {
        this.isSucc = isSucc;
    }

    @Basic
    @Column(name = "DEPOSIT_TIME",length = 200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getDepositTime() {
        return depositTime;
    }

    public void setDepositTime(Date depositTime) {
        this.depositTime = depositTime;
    }

    @Basic
    @Column(name = "ERROR_CODE")
    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Basic
    @Column(name = "ERROR_MSG",length = 32)
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Basic
    @Column(name = "SOURCE",length = 1)
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Basic
    @Column(name = "CREATED_TS",length = 200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Basic
    @Column(name = "LAST_UPD_TS",length = 200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Basic
    @Column(name = "RETURN_URL",length = 100)
    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }
}
